package com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifestvslvoy;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 舱单航次路径 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class ManifestVslvoyBaseVO {

    @Schema(description = "外键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30010")
    private Long manifestId;

    @Schema(description = "航程序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{manifestvslvoy.routeno.notnull}")
    private Integer routeNo;

    @Schema(description = "航线代码")
    @Length(max = 50, message = "{manifestvslvoy.lanecodeex.length}")
    private String laneCodeEx;

    @Schema(description = "航线代码")
    @Length(max = 50, message = "{manifestvslvoy.lanecodeim.length}")
    private String laneCodeIm;

    @Schema(description = "船名代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestvslvoy.vesselcode.notblank}")
    @Length(max = 50, message = "{manifestvslvoy.vesselcode.length}")
    private String vesselCode;

    @Schema(description = "出口航次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestvslvoy.voyageex.notblank}")
    @Length(max = 50, message = "{manifestvslvoy.voyageex.length}")
    private String voyageEx;

    @Schema(description = "进口航次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestvslvoy.voyageim.notblank}")
    @Length(max = 50, message = "{manifestvslvoy.voyageim.length}")
    private String voyageIm;

    @Schema(description = "装货港代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestvslvoy.polcode.notblank}")
    @Length(max = 5, message = "{manifestvslvoy.polcode.length}")
    private String polCode;

    @Schema(description = "卸货港代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestvslvoy.podcode.notblank}")
    @Length(max = 5, message = "{manifestvslvoy.podcode.length}")
    private String podCode;

    @Schema(description = "运输类型", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{manifestvslvoy.transmode.notblank}")
    @Length(max = 10, message = "{manifestvslvoy.transmode.length}")
    private String transmode;

    @Schema(description = "POL ETD 预计离港时间")
    @Length(max = 16, message = "{manifestvslvoy.poletd.length}")
    private String polEtd;

    @Schema(description = "POD ETA 预计到达时间")
    @Length(max = 16, message = "{manifestvslvoy.podeta.length}")
    private String podEta;

}
